<?php

namespace app\index\controller;

use app\common\controller\Frontend;
use think\Db;
use think\Request;
use think\Config;

class Jigou extends Frontend
{

    protected $noNeedLogin = '*';
    protected $noNeedRight = '*';
    protected $layout = 'default';

    public function detail(Request $request)
    {	
		$id=$request->param('id/d',0);
		$rs=Db::name('jigouliebiao')->where('id',$id)->find();
		if(is_null($rs)){
			$this->error('内容不存在');
		}
		
		$rs['images']=explode(',',$rs['images']);
		$this->assign('rs',$rs);
		$this->view->assign('title', '机构中心-机构详情');
		return $this->view->fetch();
    }
	
	
}
